<div>
    <div class="row">
        <div class="col-md-1 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview ">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree " v-for="(item,index) in partnerGoodsInfo.partners"
                            :key="index" @click="swatchPartner(item)"
                            :class="{'vc-node-selected':partnerGoodsInfo.conditions.ppId == item.ppId}">
                            {{item.partnerName}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-11">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择产品id','partnerGoods')"
                                    v-model="partnerGoodsInfo.conditions.valueId" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择商品名称','partnerGoods')"
                                    v-model="partnerGoodsInfo.conditions.prodName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择商品简介','partnerGoods')"
                                    v-model="partnerGoodsInfo.conditions.prodDesc" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择状态','partnerGoods')"
                                    v-model="partnerGoodsInfo.conditions.state" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm"
                                v-on:click="_queryPartnerGoodsMethod()">
                                <i class="glyphicon glyphicon-search"></i> <span>
                                    <vc:i18n name="查询"></vc:i18n>
                                </span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="合作商品" namespace="partnerGoods"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_toSendGoodsStockToPartner()">
                            <vc:i18n name="同步库存" namespace="partnerGoods"></vc:i18n>
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_toSendGoodsPriceToPartner()">
                            <vc:i18n name="同步价格" namespace="partnerGoods"></vc:i18n>
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_toSendGoodsToPartner()">
                            <vc:i18n name="同步商品" namespace="partnerGoods"></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
          
                                <th class="text-center">
                                    <vc:i18n name='产品编号' namespace='partnerGoods'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='商品名称' namespace='partnerGoods'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='商品简介' namespace='partnerGoods'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='规格编号' namespace='partnerGoods'></vc:i18n>
                                </th>
                           
                                <th class="text-center">
                                    <vc:i18n name='外部编码' namespace='partnerGoods'></vc:i18n>
                                </th>
                  
                                <th class="text-center">
                                    <vc:i18n name='状态' namespace='partnerGoods'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='同步说明' namespace='partnerGoods'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='同步时间' namespace='partnerGoods'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='操作'></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="partnerGoods in partnerGoodsInfo.partnerGoodss">
                                <td class="text-center">{{partnerGoods.productId}}</td>
                                <td class="text-center">{{partnerGoods.prodName}}</td>
                                <td class="text-center">{{partnerGoods.prodDesc}}</td>
                                <td class="text-center">{{partnerGoods.valueId}}</td>
                            
                                <td class="text-center">{{partnerGoods.outValueId|| '-'}}</td>
                                <td class="text-center">{{partnerGoods.state == 'Y'?'同步成功':'同步失败'}}</td>
                                <td class="text-center">{{partnerGoods.remark || '-'}}</td>
                                <td class="text-center">{{partnerGoods.createTime}}</td>

                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeletePartnerGoodsModel(partnerGoods)">
                                            <vc:i18n name='删除'></vc:i18n>
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="partner/deletePartnerGoods"></vc:create>
    <vc:create path="partner/syncPartnerGoodsPrice"></vc:create>
    <vc:create path="partner/syncPartnerGoodsStock"></vc:create>

</div>